package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class Accessibility implements Sequenceable, Serializable {
    /**
     * Sequenceable
     */
    public static final Sequenceable.Producer<Accessibility> CREATOR = new Producer<Accessibility>() {
        @Override
        public Accessibility createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            Accessibility accessibility = new Accessibility();
            accessibility.unmarshalling(parcel);
            return accessibility;
        }
    };

    @SerializedName("label")
    private String label;

    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeString(this.label);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.label = parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "Accessibility{"
                + "label='"
                + label + '\''
                + '}';
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
